<?php defined('SYSPATH') or die();?>
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>计佣规则</title>
    {template 'stourtravel/public/public_js'}
    <link type="text/css" href="{$GLOBALS['cfg_plugin_finance_public_url']}css/fx_base.css" rel="stylesheet" />
    <link type="text/css" href="{$GLOBALS['cfg_plugin_finance_public_url']}css/fx_style.css" rel="stylesheet" />
    <link type="text/css" href="{$GLOBALS['cfg_plugin_finance_public_url']}css/fx_product.css" rel="stylesheet" />
    {php echo Common::getScript('config.js');}
    {php echo Common::getScript("uploadify/jquery.uploadify.min.js"); }
    {php echo Common::getCss('uploadify.css','js/uploadify/'); }
	{php echo Common::getCss('base.css,style.css,base_new.css'); }
</head>
<body left_top=vFSX4t >
<table class="content-tab">
    <tr>
        <td width="119px" class="content-lt-td"  valign="top">
            {template 'stourtravel/public/leftnav'}
            <!--右侧内容区-->
        </td>
        <td valign="top" class="content-rt-td">
            <!--面包屑-->
            <div>
                <form id="frm">
                    <div class="w-set-con">
                    	<div class="cfg-header-bar">
                    		<a href="javascript:;" class="fr btn btn-primary radius mt-6 mr-10" onclick="window.location.reload()">刷新</a></div>
                    	</div>
                        <div class="w-set-nr">
                            <div class="picture ml-10 ratio-content" id="product_basic_config" >
                            	<ul class="info-item-block">
                            		<li>
                            			<span class="item-hd">现金返佣计算规则：</span>
                            			<div class="item-bd">
                            				<label class="radio-label mr-20"><input type="radio" name="cfg_commission_cash_calc_type" class="fx_type" value="0" {if $info['cfg_commission_cash_calc_type']==0}checked="checked"{/if}>订单额</label>
                            				<label class="radio-label mr-20"><input type="radio" name="cfg_commission_cash_calc_type" class="fx_type" value="1" {if $info['cfg_commission_cash_calc_type']==1}checked="checked"{/if}>订单购买人数</label>
                            			</div>
                            		</li>
                            	</ul>
                            </div>
							<div class="clear clearfix pt-20">
			                    <a class="btn btn-primary radius size-L ml-115" href="javascript:;" id="btn_save">保存</a>
			                </div>
                            
                        </div>
                    </div>
                </form>
            </div>
        </td>
    </tr>
</table>



<script>

    $(document).ready(function(){
        //配置信息保存
        $("#btn_save").click(function(){
            Ext.Ajax.request({
                url   :  SITEURL+"{$prefix_url}/config/ajax_config_save",
                method  :  "POST",
                isUpload :  true,
                form  : "frm",
                success  :  function(response, opts)
                {
                    var data = $.parseJSON(response.responseText);
                    if(data.status)
                    {
                        ST.Util.showMsg('保存成功!','4',2000);
                    }
                }
            });
        })


    });
</script>


</body>
</html>
